﻿
@using S4Store.Models
@model LX.Core.Query.PagedList<S4Store.Domain.ImproveGuide>
@{
    ViewBag.Title = "Query";
    Layout = null;
}
<div class="pageContent" ratio="*">
<div class="grid">
		<table class="table" width="1000" layoutH="138" cellpadding="0" cellspacing="0">
		<thead>
			<tr>
                <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th width="200">来自</th>
                <th width="80">时间</th>
			    <th width="400">信息摘要</th>
			</tr>
		</thead>
		<tbody>
            @foreach (var m in this.Model.Data)
            {
                <tr>
                    <td style=" text-align:center"><input name="ids" value="@m.Id" type="checkbox"></td>
                    <td>@m.ReferenceDesc</td>
                    <td>@m.ImproveDate.ToString("yyyy-MM-dd")</td>
				    <td>
                    <a href="@Url.Action("Detail", new { id=m.Id})" target="dialog" title="详细信息" style=" color:Blue; text-decoration:underline">
                    
                            @if (m.ImproveContent != null)
                            {
                                if (m.ImproveContent.Length > 100)
                                {
                                    @Html.Raw(m.ImproveContent.Substring(0, 100) + "...")
                                }
                                else
                                {
                                    @Html.Raw(m.ImproveContent)
                                }
                            }
                        
                        </a>
                    </td>		
			    </tr>	
            }					
		</tbody>
	</table>
</div>
</div>
@Html.Partial("Pager",new PagerModel{ Page=Model.Page, Total=Model.Total, PageSize= Model.PageSize})	